package com.ts.animal.dao;

import com.ts.animal.domain.RfidSyncDataDO;
import com.ts.animal.domain.WarningRecordDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 预警记录
 *
 * @author bobby
 * @email bobby@126.com
 * @date 2022-09-02 16:17:49
 */
@Mapper
public interface ExWarningRecordDao {

    int count(Map<String, Object> map);

    List<Map<String, Object>> list(Map<String, Object> map);

    int batchSave(@Param("list") List<WarningRecordDO> list);

    //查询告警数量
    Map<String, Integer> queryAlarmAmount(Date startWarnTime);

    //处理告警
    int handleWarning(WarningRecordDO warningRecordDO);
}
